package edu.neusoft.yiqibike.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import edu.neusoft.yiqibike.common.entity.mysql.Admin;
import edu.neusoft.yiqibike.common.exception.UserException;

import java.util.List;

public interface IAdminService extends IService<Admin> {
    Page<Admin> getAdminList(Page<Admin> page);

    Admin getAdminById(Long aid);

    Admin getAdminByRealname(String realname);

    void addAdmin(Admin admin) throws UserException;

    void invertIsEnable(Long id, Integer isEnable);

    Admin getAdminWithRoleAndPermission(Admin admin);

    List<Admin> getColleagueList(String departmentNo);

    void changePassword(String newPwd, String oldPwd, Admin admin);
}
